package com.demo.spring.annoinit;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App3 {

	public static void main(String[] args) {
        // 用我们的配置文件来启动一个 ApplicationContext
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(StudentServiceImpl.class);
        System.out.println("context 启动成功");

        StudentServiceImpl studentServiceImpl = context.getBean(StudentServiceImpl.class);
        studentServiceImpl.play();
    }

}
